import request from '/@/utils/request';
enum Api {
  PageMyXuanke = '/api/myXuanke/page',
  ListKecheng = '/api/myXuanke/list',
  SaveXuanke = '/api/myXuanke/save',
  PageListByTeacherId = '/api/myXuanke/pageListByTeacherId',
  SaveChuqin = '/api/myXuanke/saveChuqin',
}
// 分页查询选课
export const pageMyXuanke = (params?: any) => 
	request({
			url: Api.PageMyXuanke,
			method: 'post',
			data: params,
		});

export const listKecheng = (params?: any) => 
	request({
			url: Api.ListKecheng,
			method: 'post',
			data: params,
		});

export const saveXuanke = (params?: any) => 
	request({
			url: Api.SaveXuanke,
			method: 'post',
			data: params,
		});

export const pageListByTeacherId = (params?: any) => 
	request({
			url: Api.PageListByTeacherId,
			method: 'post',
			data: params,
		});

export const saveChuqin = (params?: any) => 
	request({
			url: Api.SaveChuqin,
			method: 'post',
			data: params,
		});